package ie.dpsystems.json;

import com.google.gson.Gson;



public class JsonWrapper {

	
	public static String ToJson(Object object) 
	{
		Gson gson = new Gson();
		return gson.toJson(object);
		
	}
	public static <T> T FromJson(String json,
            Class<T> classOfT)
	{
		Gson gson = new Gson();
		return gson.fromJson(json, classOfT);
	}
	
}
